home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Science / µSim 1.0b5 folder / source / Alerts.r < prev    next >
Encoding:
Text File  |  1994-01-05  |  15.8 KB  |  814 lines  |  [TEXT/MMCC]

  1. /*
  2. Copyright © 1993,1994 by Fabrizio Oddone
  3. ••• ••• ••• ••• ••• ••• ••• ••• ••• •••
  4. This source code is distributed as freeware: you can copy, exchange, modify this
  5. code as you wish. You may include this code in any kind of application: freeware,
  6. shareware, or commercial, provided that full credits are given.
  7. You may not sell or distribute this code for profit.
  8. */
  9.  
  10. #define SystemSevenOrLater 1
  11.  
  12. #include "SysTypes.r"
  13. #include "Types.r"
  14. #include "StdAlert.r"
  15.  
  16. #define NumTextLines        3
  17.  
  18. resource 'ALRT' (200, purgeable) {
  19.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  20.     200,
  21.     {    /* array: 4 elements */
  22.         /* [1] */
  23.         OK, visible, silent,
  24.         /* [2] */
  25.         OK, visible, silent,
  26.         /* [3] */
  27.         OK, visible, silent,
  28.         /* [4] */
  29.         OK, visible, silent
  30.     },
  31.     alertPositionMainScreen
  32. };
  33.  
  34. resource 'DITL' (200, purgeable) {
  35.     {    /* array DITLarray: 4 elements */
  36.         /* [1] */
  37.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  38.         Button {
  39.             enabled,
  40.             "Save"
  41.         },
  42.         /* [2] */
  43.         {ButtonTop, CancelButtonLeft, ButtonBottom, CancelButtonRight},
  44.         Button {
  45.             enabled,
  46.             "Cancel"
  47.         },
  48.         /* [3] */
  49.         {ButtonTop, DontSaveButtonLeft, ButtonBottom, DontSaveButtonRight},
  50.         Button {
  51.             enabled,
  52.             "Don’t Save"
  53.         },
  54.         /* [4] */
  55.         {TextTop, TextLeft, TextBottom, TextRight},
  56.         StaticText {
  57.             disabled,
  58.             "Save changes to the microprogram document “^0”?"
  59.         }
  60.     }
  61. };
  62.  
  63. #define NumTextLines        4
  64. #define LongestButtonName    64    // Overwrite
  65.  
  66. resource 'ALRT' (129, purgeable) {
  67.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  68.     129,
  69.     {    /* array: 4 elements */
  70.         /* [1] */
  71.         Cancel, visible, sound1,
  72.         /* [2] */
  73.         Cancel, visible, sound1,
  74.         /* [3] */
  75.         Cancel, visible, sound1,
  76.         /* [4] */
  77.         Cancel, visible, sound1
  78.     },
  79.     alertPositionMainScreen
  80. };
  81.  
  82. resource 'DITL' (129, purgeable) {
  83.     {    /* array DITLarray: 3 elements */
  84.         /* [1] */
  85.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  86.         Button {
  87.             enabled,
  88.             "Overwrite"
  89.         },
  90.         /* [2] */
  91.         {ButtonTop, CancelButtonLeft, ButtonBottom, CancelButtonRight},
  92.         Button {
  93.             enabled,
  94.             "Cancel"
  95.         },
  96.         /* [3] */
  97.         {TextTop, TextLeft, TextBottom, TextRight},
  98.         StaticText {
  99.             disabled,
  100.             "A safe save is not possible, because the available free spac"
  101.             "e is less than the size of this document. Shall I overwrite "
  102.             "the original document?"
  103.         }
  104.     }
  105. };
  106. #define LongestButtonName    LongestBtnName    // restore
  107.  
  108. #define NumTextLines        2
  109.  
  110. resource 'ALRT' (130, purgeable) {
  111.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  112.     130,
  113.     {    /* array: 4 elements */
  114.         /* [1] */
  115.         OK, visible, sound2,
  116.         /* [2] */
  117.         OK, visible, sound2,
  118.         /* [3] */
  119.         OK, visible, sound2,
  120.         /* [4] */
  121.         OK, visible, sound2
  122.     },
  123.     alertPositionMainScreen
  124. };
  125.  
  126. resource 'DITL' (130, purgeable) {
  127.     {    /* array DITLarray: 2 elements */
  128.         /* [1] */
  129.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  130.         Button {
  131.             enabled,
  132.             "OK"
  133.         },
  134.         /* [2] */
  135.         {TextTop, TextLeft, TextBottom, TextRight},
  136.         StaticText {
  137.             disabled,
  138.             "A general error ^0 has occurred; I hope you have a list of e"
  139.             "rror codes."
  140.         }
  141.     }
  142. };
  143.  
  144. #define NumTextLines        3
  145.  
  146. resource 'ALRT' (131, purgeable) {
  147.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  148.     131,
  149.     {    /* array: 4 elements */
  150.         /* [1] */
  151.         OK, visible, sound1,
  152.         /* [2] */
  153.         OK, visible, sound1,
  154.         /* [3] */
  155.         OK, visible, sound1,
  156.         /* [4] */
  157.         OK, visible, sound1
  158.     },
  159.     alertPositionMainScreen
  160. };
  161.  
  162. resource 'DITL' (131, purgeable) {
  163.     {    /* array DITLarray: 2 elements */
  164.         /* [1] */
  165.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  166.         Button {
  167.             enabled,
  168.             "Quit"
  169.         },
  170.         /* [2] */
  171.         {TextTop, TextLeft, TextBottom, TextRight},
  172.         StaticText {
  173.             disabled,
  174.             "Sorry, this program needs features currently available "
  175.             "only under System 7.0 or later."
  176.         }
  177.     }
  178. };
  179.  
  180. #define NumTextLines        4
  181.  
  182. resource 'ALRT' (132, purgeable) {
  183.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  184.     132,
  185.     {    /* array: 4 elements */
  186.         /* [1] */
  187.         OK, visible, sound2,
  188.         /* [2] */
  189.         OK, visible, sound2,
  190.         /* [3] */
  191.         OK, visible, sound2,
  192.         /* [4] */
  193.         OK, visible, sound2
  194.     },
  195.     alertPositionMainScreen
  196. };
  197.  
  198. resource 'DITL' (132, purgeable) {
  199.     {    /* array DITLarray: 2 elements */
  200.         /* [1] */
  201.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  202.         Button {
  203.             enabled,
  204.             "OK"
  205.         },
  206.         /* [2] */
  207.         {TextTop, TextLeft, TextBottom, TextRight},
  208.         StaticText {
  209.             disabled,
  210.             "Sorry, it is not possible to save onto this disk without ove"
  211.             "rwriting the original file (no more free space available). T"
  212.             "o be safe, save onto another disk."
  213.         }
  214.     }
  215. };
  216.  
  217. #define NumTextLines        3
  218.  
  219. resource 'ALRT' (133, purgeable) {
  220.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  221.     133,
  222.     {    /* array: 4 elements */
  223.         /* [1] */
  224.         OK, visible, sound2,
  225.         /* [2] */
  226.         OK, visible, sound2,
  227.         /* [3] */
  228.         OK, visible, sound2,
  229.         /* [4] */
  230.         OK, visible, sound2
  231.     },
  232.     alertPositionMainScreen
  233. };
  234.  
  235. resource 'DITL' (133, purgeable) {
  236.     {    /* array DITLarray: 2 elements */
  237.         /* [1] */
  238.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  239.         Button {
  240.             enabled,
  241.             "OK"
  242.         },
  243.         /* [2] */
  244.         {TextTop, TextLeft, TextBottom, TextRight},
  245.         StaticText {
  246.             disabled,
  247.             "An error ^0 has occurred while processing an Apple Event; I "
  248.             "hope you have a list of error codes."
  249.         }
  250.     }
  251. };
  252.  
  253. #define NumTextLines        4
  254.  
  255. resource 'ALRT' (514, purgeable) {
  256.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  257.     514,
  258.     {    /* array: 4 elements */
  259.         /* [1] */
  260.         OK, visible, sound3,
  261.         /* [2] */
  262.         OK, visible, sound3,
  263.         /* [3] */
  264.         OK, visible, sound3,
  265.         /* [4] */
  266.         OK, visible, sound3
  267.     },
  268.     alertPositionMainScreen
  269. };
  270.  
  271. resource 'DITL' (514, purgeable) {
  272.     {    /* array DITLarray: 2 elements */
  273.         /* [1] */
  274.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  275.         Button {
  276.             enabled,
  277.             "OK"
  278.         },
  279.         /* [2] */
  280.         {TextTop, TextLeft, TextBottom, TextRight},
  281.         StaticText {
  282.             disabled,
  283.             "You would assemble this program outside of the simulator mem"
  284.             "ory. Set the value in the Assembler Preferences dialog to a "
  285.             "more reasonable one."
  286.         }
  287.     }
  288. };
  289.  
  290. #define NumTextLines        1
  291.  
  292. resource 'ALRT' (512, purgeable) {
  293.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  294.     512,
  295.     {    /* array: 4 elements */
  296.         /* [1] */
  297.         OK, visible, sound3,
  298.         /* [2] */
  299.         OK, visible, sound3,
  300.         /* [3] */
  301.         OK, visible, sound3,
  302.         /* [4] */
  303.         OK, visible, sound3
  304.     },
  305.     alertPositionMainScreen
  306. };
  307.  
  308. resource 'DITL' (512, purgeable) {
  309.     {    /* array DITLarray: 2 elements */
  310.         /* [1] */
  311.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  312.         Button {
  313.             enabled,
  314.             "OK"
  315.         },
  316.         /* [2] */
  317.         {TextTop, TextLeft, TextBottom, TextRight},
  318.         StaticText {
  319.             disabled,
  320.             "I have found an invalid opcode."
  321.         }
  322.     }
  323. };
  324.  
  325. #define NumTextLines        2
  326.  
  327. resource 'ALRT' (513, purgeable) {
  328.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  329.     513,
  330.     {    /* array: 4 elements */
  331.         /* [1] */
  332.         OK, visible, sound3,
  333.         /* [2] */
  334.         OK, visible, sound3,
  335.         /* [3] */
  336.         OK, visible, sound3,
  337.         /* [4] */
  338.         OK, visible, sound3
  339.     },
  340.     alertPositionMainScreen
  341. };
  342.  
  343. resource 'DITL' (513, purgeable) {
  344.     {    /* array DITLarray: 2 elements */
  345.         /* [1] */
  346.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  347.         Button {
  348.             enabled,
  349.             "OK"
  350.         },
  351.         /* [2] */
  352.         {TextTop, TextLeft, TextBottom, TextRight},
  353.         StaticText {
  354.             disabled,
  355.             "I have found an opcode not present in the opcode table."
  356.         }
  357.     }
  358. };
  359.  
  360. #define NumTextLines        2
  361.  
  362. resource 'ALRT' (515, purgeable) {
  363.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  364.     515,
  365.     {    /* array: 4 elements */
  366.         /* [1] */
  367.         OK, visible, sound3,
  368.         /* [2] */
  369.         OK, visible, sound3,
  370.         /* [3] */
  371.         OK, visible, sound3,
  372.         /* [4] */
  373.         OK, visible, sound3
  374.     },
  375.     alertPositionMainScreen
  376. };
  377.  
  378. resource 'DITL' (515, purgeable) {
  379.     {    /* array DITLarray: 2 elements */
  380.         /* [1] */
  381.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  382.         Button {
  383.             enabled,
  384.             "OK"
  385.         },
  386.         /* [2] */
  387.         {TextTop, TextLeft, TextBottom, TextRight},
  388.         StaticText {
  389.             disabled,
  390.             "I have found a symbol which is not defined."
  391.         }
  392.     }
  393. };
  394.  
  395. #define NumTextLines        2
  396.  
  397. resource 'ALRT' (135, purgeable, preload) {
  398.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  399.     135,
  400.     {    /* array: 4 elements */
  401.         /* [1] */
  402.         OK, visible, sound3,
  403.         /* [2] */
  404.         OK, visible, sound3,
  405.         /* [3] */
  406.         OK, visible, sound3,
  407.         /* [4] */
  408.         OK, visible, sound3
  409.     },
  410.     alertPositionMainScreen
  411. };
  412.  
  413. resource 'DITL' (135, purgeable, preload) {
  414.     {    /* array DITLarray: 2 elements */
  415.         /* [1] */
  416.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  417.         Button {
  418.             enabled,
  419.             "OK"
  420.         },
  421.         /* [2] */
  422.         {TextTop, TextLeft, TextBottom, TextRight},
  423.         StaticText {
  424.             disabled,
  425.             "A stack underflow error occurred (in the simulated computer,"
  426.             " fortunately)."
  427.         }
  428.     }
  429. };
  430.  
  431. #define NumTextLines        3
  432.  
  433. resource 'ALRT' (136, purgeable, preload) {
  434.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  435.     136,
  436.     {    /* array: 4 elements */
  437.         /* [1] */
  438.         OK, visible, sound3,
  439.         /* [2] */
  440.         OK, visible, sound3,
  441.         /* [3] */
  442.         OK, visible, sound3,
  443.         /* [4] */
  444.         OK, visible, sound3
  445.     },
  446.     alertPositionMainScreen
  447. };
  448.  
  449. resource 'DITL' (136, purgeable, preload) {
  450.     {    /* array DITLarray: 2 elements */
  451.         /* [1] */
  452.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  453.         Button {
  454.             enabled,
  455.             "OK"
  456.         },
  457.         /* [2] */
  458.         {TextTop, TextLeft, TextBottom, TextRight},
  459.         StaticText {
  460.             disabled,
  461.             "Timeout error. The simulated processor is abnormally busy, p"
  462.             "ossibly because of an infinite loop in the microprogram."
  463.         }
  464.     }
  465. };
  466.  
  467. #define NumTextLines        1
  468.  
  469. resource 'ALRT' (137, purgeable, preload) {
  470.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  471.     137,
  472.     {    /* array: 4 elements */
  473.         /* [1] */
  474.         OK, visible, sound2,
  475.         /* [2] */
  476.         OK, visible, sound2,
  477.         /* [3] */
  478.         OK, visible, sound2,
  479.         /* [4] */
  480.         OK, visible, sound2
  481.     },
  482.     alertPositionMainScreen
  483. };
  484.  
  485. resource 'DITL' (137, purgeable, preload) {
  486.     {    /* array DITLarray: 2 elements */
  487.         /* [1] */
  488.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  489.         Button {
  490.             enabled,
  491.             "OK"
  492.         },
  493.         /* [2] */
  494.         {TextTop, TextLeft, TextBottom, TextRight},
  495.         StaticText {
  496.             disabled,
  497.             "The simulated program has quitted."
  498.         }
  499.     }
  500. };
  501.  
  502. #define NumTextLines        2
  503.  
  504. resource 'ALRT' (516, purgeable) {
  505.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  506.     516,
  507.     {    /* array: 4 elements */
  508.         /* [1] */
  509.         OK, visible, sound3,
  510.         /* [2] */
  511.         OK, visible, sound3,
  512.         /* [3] */
  513.         OK, visible, sound3,
  514.         /* [4] */
  515.         OK, visible, sound3
  516.     },
  517.     alertPositionMainScreen
  518. };
  519.  
  520. resource 'DITL' (516, purgeable) {
  521.     {    /* array DITLarray: 2 elements */
  522.         /* [1] */
  523.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  524.         Button {
  525.             enabled,
  526.             "OK"
  527.         },
  528.         /* [2] */
  529.         {TextTop, TextLeft, TextBottom, TextRight},
  530.         StaticText {
  531.             disabled,
  532.             "Operand not valid. One or two letters are allowed between ' "
  533.             "'."
  534.         }
  535.     }
  536. };
  537.  
  538. #define NumTextLines        4
  539.  
  540. resource 'ALRT' (138, purgeable) {
  541.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  542.     138,
  543.     {    /* array: 4 elements */
  544.         /* [1] */
  545.         OK, visible, sound1,
  546.         /* [2] */
  547.         OK, visible, sound1,
  548.         /* [3] */
  549.         OK, visible, sound1,
  550.         /* [4] */
  551.         OK, visible, sound1
  552.     },
  553.     alertPositionMainScreen
  554. };
  555.  
  556. resource 'DITL' (138, purgeable) {
  557.     {    /* array DITLarray: 2 elements */
  558.         /* [1] */
  559.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  560.         Button {
  561.             enabled,
  562.             "OK"
  563.         },
  564.         /* [2] */
  565.         {TextTop, TextLeft, TextBottom, TextRight},
  566.         StaticText {
  567.             disabled,
  568.             "Sorry, this volume does not support “safe save”. Please save"
  569.             " onto another volume, or save the document with another name"
  570.             "."
  571.         }
  572.     }
  573. };
  574.  
  575. #define NumTextLines        3
  576.  
  577. resource 'ALRT' (139, purgeable, preload) {
  578.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  579.     139,
  580.     {    /* array: 4 elements */
  581.         /* [1] */
  582.         Cancel, visible, silent,
  583.         /* [2] */
  584.         Cancel, visible, silent,
  585.         /* [3] */
  586.         Cancel, visible, silent,
  587.         /* [4] */
  588.         Cancel, visible, silent
  589.     },
  590.     alertPositionMainScreen
  591. };
  592.  
  593. resource 'DITL' (139, purgeable, preload) {
  594.     {    /* array DITLarray: 3 elements */
  595.         /* [1] */
  596.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  597.         Button {
  598.             enabled,
  599.             "Reset"
  600.         },
  601.         /* [2] */
  602.         {ButtonTop, CancelButtonLeft, ButtonBottom, CancelButtonRight},
  603.         Button {
  604.             enabled,
  605.             "Cancel"
  606.         },
  607.         /* [3] */
  608.         {TextTop, TextLeft, TextBottom, TextRight},
  609.         StaticText {
  610.             disabled,
  611.             "Do you really want to reset the Program Counter and the Stac"
  612.             "k Pointer to their initial values? This is NOT undoable."
  613.         }
  614.     }
  615. };
  616.  
  617. #define NumTextLines        2
  618.  
  619. resource 'ALRT' (140, purgeable, preload) {
  620.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  621.     140,
  622.     {    /* array: 4 elements */
  623.         /* [1] */
  624.         OK, visible, sound3,
  625.         /* [2] */
  626.         OK, visible, sound3,
  627.         /* [3] */
  628.         OK, visible, sound3,
  629.         /* [4] */
  630.         OK, visible, sound3
  631.     },
  632.     alertPositionMainScreen
  633. };
  634.  
  635. resource 'DITL' (140, purgeable, preload) {
  636.     {    /* array DITLarray: 2 elements */
  637.         /* [1] */
  638.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  639.         Button {
  640.             enabled,
  641.             "OK"
  642.         },
  643.         /* [2] */
  644.         {TextTop, TextLeft, TextBottom, TextRight},
  645.         StaticText {
  646.             disabled,
  647.             "A stack overflow error occurred (in the simulated computer, "
  648.             "fortunately)."
  649.         }
  650.     }
  651. };
  652.  
  653. #define NumTextLines        3
  654.  
  655. resource 'ALRT' (141, purgeable) {
  656.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  657.     141,
  658.     {    /* array: 4 elements */
  659.         /* [1] */
  660.         OK, visible, sound3,
  661.         /* [2] */
  662.         OK, visible, sound3,
  663.         /* [3] */
  664.         OK, visible, sound3,
  665.         /* [4] */
  666.         OK, visible, sound3
  667.     },
  668.     alertPositionMainScreen
  669. };
  670.  
  671. resource 'DITL' (141, purgeable) {
  672.     {    /* array DITLarray: 2 elements */
  673.         /* [1] */
  674.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  675.         Button {
  676.             enabled,
  677.             "OK"
  678.         },
  679.         /* [2] */
  680.         {TextTop, TextLeft, TextBottom, TextRight},
  681.         StaticText {
  682.             disabled,
  683.             "Sorry, memory is full. You will find some recovered document"
  684.             "s in the Trash after restarting your Mac."
  685.         }
  686.     }
  687. };
  688.  
  689. #define NumTextLines        3
  690.  
  691. resource 'ALRT' (128, purgeable, preload) {
  692.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  693.     128,
  694.     {    /* array: 4 elements */
  695.         /* [1] */
  696.         Cancel, visible, silent,
  697.         /* [2] */
  698.         Cancel, visible, silent,
  699.         /* [3] */
  700.         Cancel, visible, silent,
  701.         /* [4] */
  702.         Cancel, visible, silent
  703.     },
  704.     alertPositionMainScreen
  705. };
  706.  
  707. resource 'DITL' (128, purgeable, preload) {
  708.     {    /* array DITLarray: 3 elements */
  709.         /* [1] */
  710.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  711.         Button {
  712.             enabled,
  713.             "Reset"
  714.         },
  715.         /* [2] */
  716.         {ButtonTop, CancelButtonLeft, ButtonBottom, CancelButtonRight},
  717.         Button {
  718.             enabled,
  719.             "Cancel"
  720.         },
  721.         /* [3] */
  722.         {TextTop, TextLeft, TextBottom, TextRight},
  723.         StaticText {
  724.             disabled,
  725.             "Do you really want to reset the simulator main memory to its"
  726.             " initial state? This is NOT undoable."
  727.         }
  728.     }
  729. };
  730.  
  731. #define NumTextLines        3
  732.  
  733. resource 'ALRT' (142, purgeable) {
  734.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  735.     142,
  736.     {    /* array: 4 elements */
  737.         /* [1] */
  738.         Cancel, visible, silent,
  739.         /* [2] */
  740.         Cancel, visible, silent,
  741.         /* [3] */
  742.         Cancel, visible, silent,
  743.         /* [4] */
  744.         Cancel, visible, silent
  745.     },
  746.     alertPositionMainScreen
  747. };
  748.  
  749. resource 'DITL' (142, purgeable) {
  750.     {    /* array DITLarray: 3 elements */
  751.         /* [1] */
  752.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  753.         Button {
  754.             enabled,
  755.             "Revert"
  756.         },
  757.         /* [2] */
  758.         {ButtonTop, CancelButtonLeft, ButtonBottom, CancelButtonRight},
  759.         Button {
  760.             enabled,
  761.             "Cancel"
  762.         },
  763.         /* [3] */
  764.         {TextTop, TextLeft, TextBottom, TextRight},
  765.         StaticText {
  766.             disabled,
  767.             "Do you really want to revert to the last saved version of th"
  768.             "is document? This is NOT undoable."
  769.         }
  770.     }
  771. };
  772.  
  773. #define NumTextLines        3
  774.  
  775. resource 'ALRT' (143, purgeable) {
  776.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  777.     143,
  778.     {    /* array: 4 elements */
  779.         /* [1] */
  780.         Cancel, visible, silent,
  781.         /* [2] */
  782.         Cancel, visible, silent,
  783.         /* [3] */
  784.         Cancel, visible, silent,
  785.         /* [4] */
  786.         Cancel, visible, silent
  787.     },
  788.     alertPositionMainScreen
  789. };
  790.  
  791. resource 'DITL' (143, purgeable) {
  792.     {    /* array DITLarray: 3 elements */
  793.         /* [1] */
  794.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  795.         Button {
  796.             enabled,
  797.             "Quit"
  798.         },
  799.         /* [2] */
  800.         {ButtonTop, CancelButtonLeft, ButtonBottom, CancelButtonRight},
  801.         Button {
  802.             enabled,
  803.             "Cancel"
  804.         },
  805.         /* [3] */
  806.         {TextTop, TextLeft, TextBottom, TextRight},
  807.         StaticText {
  808.             disabled,
  809.             "A computation is running on the simulated processor. Do you really want to quit now?"
  810.         }
  811.     }
  812. };
  813.  
  814.